﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Game.Handlers
{
    public class StatChange
    {
        public int returned_stat;
        public int returned_buildpoints;

        #region Adding / Removing points to Stats
        public void Plus(string stat, int stat_base, int build_points, string race)
        {
            #region Human
            if (race == "Human")
            {
                returned_stat = stat_base + 2;
                returned_buildpoints = build_points - 10;
            }
            #endregion
            #region Elf
            else if (race == "Elf")
            {
                if (stat == "dexterity")
                {
                    returned_stat = stat_base + 4;
                    returned_buildpoints = build_points - 15;
                }
                else if (stat == "apperance")
                {
                    returned_stat = stat_base + 2;
                    returned_buildpoints = build_points - 15;
                }
                else { returned_stat = stat_base + 1; returned_buildpoints = build_points - 15; }

            }
            #endregion
            else if (race == "Neko")
            {
            }
            else if (race == "Goo")
            {
            }
            else if (race == "Angel")
            {
            }
            else if (race == "Demon")
            {
            }
        }

        public void Minus(string stat, int stat_base, int build_points, string race)
        {
            #region Human
            if (race == "Human")
            {
                returned_stat = stat_base - 1;
                returned_buildpoints = build_points + 10;
            }
            #endregion
            #region Elf
            else if (race == "Elf")
            {
                if (stat == "dexterity")
                {
                    returned_stat = stat_base - 4;
                    returned_buildpoints = build_points + 15;
                }
                else if (stat == "apperance")
                {
                    returned_stat = stat_base - 2;
                    returned_buildpoints = build_points + 15;
                }
                else { returned_stat = stat_base - 1; returned_buildpoints = build_points + 15; }
            }
            #endregion
            else if (race == "Neko")
            {
            }
            else if (race == "Goo")
            {
            }
            else if (race == "Angel")
            {
            }
            else if (race == "Demon")
            {
            }
        }
        #endregion
    }
}
